import httpInstance from "@/utils/http"

export const getCheckInfoAPI = () => {
  return httpInstance({
    url: '/member/order/pre',
  })
}

//创建订单
export const createOrderAPI = (data) => {
  return httpInstance({
    url: '/member/order',
    method: 'POST',
    data
  })
}

//获取订单详情以及支付结果
export const getOrderAPI = (id) => {
  return httpInstance({
    url: `/member/order/${id}`
  })
}
